package com.hejian.android.a72ggametools.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import com.hejian.android.a72ggametools.R;

/**
 * Created by Administrator on 2016/1/20.
 */
public class UserInfoActivity extends AppCompatActivity {
    private TextView userName;
    private TextView nickName;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_userinfo);
        initView();
        initData();
    }

    private void initData() {
        Bundle bundle = getIntent().getBundleExtra("userbundle");
        userName.setText("用户名："+bundle.getString("username"));
        nickName.setText("昵称："+bundle.getString("nickname"));
    }

    private void initView() {
        userName = (TextView)findViewById(R.id.userinfo_username);
        nickName = (TextView)findViewById(R.id.userinfo_nickname);
    }
}
